package com.kim.authorization.server.config.util;

import org.springframework.security.oauth2.common.util.RandomValueStringGenerator;

/**
 * 设置为线程安全的随机数
 */
public class GenerateAuthorizationCode {

    /**
     * 设置为线程安全
     */
    public static ThreadLocal<RandomValueStringGenerator> generatorThreadLocal = ThreadLocal.withInitial(() -> new RandomValueStringGenerator(12));
}
